package com.kgc.personprovider.service;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.personcommon.pojo.Permission;
import com.kgc.personcommon.pojo.User;

import java.util.Map;

public interface UserService {
    ResponseMsg getByPage(Map<String, Object> params);
    ResponseMsg add(User user);
    ResponseMsg update(User user);
    ResponseMsg delete(String id);
    ResponseMsg getById(String id);
    ResponseMsg getAll(Map<String, Object> params);
    ResponseMsg login(String account, String password,String checkCode);
    String getCaptcha();  // 返回 Base64 编码的验证码图片
    ResponseMsg logout(String sessionId);
    ResponseMsg getUserRoutes(String token);
    ResponseMsg getTreePermissionsByUserId(String userId);
    public ResponseMsg refresh(Map<String, String> map);

    ResponseMsg selectUserByMap(Map<String, Object> map);
}
